
layui.use(['layer','laydate'], function(){
});

var wnMachineToolConsoleGrid =new consoleGrid({table_id:"wnMachineTool"});
wnMachineToolConsoleGrid.init();
function wnMachineToolTableOperate(value){
return "<button type='button' class='btn btn-xs btn-default command-edit' onclick='consoleOpenWindow(\"wnMachineTool\",\"/console/wn_machine_tool/edit?id="+value+"\",\"编辑\")'><span class='glyphicon glyphicon-pencil'></span></button> ";
}
function wnMachineToolLoadParam(params){
    params.farmId=$("#farmId").val()==null||$("#farmId").val()==''?"-1":$("#farmId").val();
    params.machineId=$("#id").val();
    return params;
}

